<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>User Login</title>
</head>
<body bgcolor="#99CCFF">
	<f:view>
		<h:form>
			<h:panelGrid columns="3">

				<h:outputText value="Login Id:" />
				<h:inputText id="loginId" value="#{userLoginBean.loginId}"
					required="true" requiredMessage="LoginId is required" />
				<h:message showSummary="true" showDetail="false" for="loginId" />

				<h:outputText value="Password:" />
				<h:inputSecret id="loginPass" value="#{userLoginBean.loginPass}"
					required="true" requiredMessage="Password is required" />
				<h:message showSummary="true" showDetail="false" for="loginPass" />

				<h:outputText value="" />
				<h:commandButton type="submit" value="Login"
					action="#{actionBeanLoginLogout.validateUser}" />
				<h:outputText value="" />

				<h:outputText value="" />
				<h:outputText value="" />
				<h:outputText value="" />

				<h:outputText value="Not Registered?" />
				<a href="registerUser.jsp">SignUp</a>
				<h:outputText value="#{messageBean.errorMessage}" />
			</h:panelGrid>
		</h:form>

	</f:view>
</body>
</html>